package com.xunyji.springsecurity02.repository;

import com.xunyji.springsecurity02.pojo.dataobject.SecurityUserRoleDO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 王杨帅
 * @create 2018-09-08 20:31
 * @desc
 **/
public interface UserRoleRepository extends JpaRepository<SecurityUserRoleDO, Integer> {

    List<SecurityUserRoleDO> findByUserId(Integer userId);

}
